<%@ page language="java" contentType="text/html; charset=US-ASCII"
	pageEncoding="US-ASCII"%>
<!DOCTYPE html>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">

<!-- Link ai file CSS -->
<link href="css/gestionesistema.css" rel="stylesheet">
<link href="css/form.css" rel="stylesheet">

</head>
<body>

	<%@include file="headerAmministratore.jsp"%>
	<script type="text/javascript" src="js/creazioneAccount.js"></script>
	<script type="text/javascript" src="bootstrap/js/tooltip.js"></script>
	<script type="text/javascript" src="js/noty/packaged/jquery.noty.packaged.min.js"></script>
	
	
		<form id="create-account" class="form-horizontal" action="./creazioneAccount" method="post">

			<!-- USERNAME -->
			<div class="form-group">
				<label for="username" class="col-sm-2 control-label">Username</label>
				<div class="col-sm-6">
					<input type="text" name="ACC_USER" class="form-control"
						id="username" placeholder="Inserisci username">
				</div>
			</div>
			<!-- /USERNAME -->

			<!-- PASSWORD -->
			<div class="form-group">
				<label for="password" class="col-sm-2 control-label">Password</label>
				<div class="col-sm-6">
					<input type="text" name="ACC_PSW" class="form-control"
						id="password" placeholder="Inserisci password">
				</div>
			</div>
			<!-- /PASSWORD -->

			<!-- TIPOLOGIA ACCOUNT-->
			<div class="form-group">
				<label for="tipologia-account" class="col-sm-2 control-label">Tipologia</label>
				<div class="col-sm-6">
					<select name="ACC_TIPOLOGIA" class="form-control"
						id="tipologia-account" required onchange="testValue(this)">
						<option value="" class="hidden"></option>
						<option value="ricercatore">Ricercatore</option>
						<option value="responsabile">Responsabile d'Ateneo</option>
					</select>
				</div>
			</div>
			<!-- /TIPOLOGIA ACCOUNT-->

			<!-- RICERCATORE FORM AGGIUNTIVI -->
			<div id="container" class="form-ricercatore hidden">
			
				<!-- NOME -->
				<div class="form-group">
					<label for="nome" class="col-sm-2 control-label">Nome</label>
					<div class="col-sm-6">
						<input type="text" name="RICER_NOME" class="form-control" id="nome"
							placeholder="Inserisci nome">
					</div>
				</div>
				<!-- /NOME -->
	
				<!-- COGNOME -->
				<div class="form-group">
					<label for="cognome" class="col-sm-2 control-label">Cognome</label>
					<div class="col-sm-6">
						<input type="text" name="RICER_COGN" class="form-control"
							id="cognome" placeholder="Inserisci cognome">
					</div>
				</div>
				<!-- /COGNOME -->

				<!-- CODICE FISCALE -->
				<div class="form-group">
					<label for="codiceFiscale" class="col-sm-2 control-label">Codice
						Fiscale</label>
					<div class="col-sm-6">
						<input type="text" name="RICER_COD_FISC" class="form-control"
							id="codiceFiscale" placeholder="Inserisci codice fiscale">
					</div>
				</div>
				<!-- /CODICE FISCALE -->

				<!-- DATA NASCITA -->
				<div class="form-group">
					<label for="data-nascita" class="col-sm-2 control-label">Data
						Nascita</label>
					<div class="col-sm-6">
						<input type="date" name="RICER_DATA_NASC" class="form-control"
							id="data-nascita" placeholder="Inserisci data nascita">
					</div>
				</div>
				<!-- /DATA NASCITA -->

				<!-- CITTA' NASCITA -->
				<div class="form-group">
					<label for="citta-nascita" class="col-sm-2 control-label">Citta'
						Nascita</label>
					<div class="col-sm-6">
						<input type="text" name="RICER_CITTA_NASC" class="form-control"
							id="citta-nascita" placeholder="Inserisci citta' nascita">
					</div>
				</div>
				<!-- /CITTA' NASCITA -->

				<!-- SESSO -->
				<div class="form-group">
					<label for="sesso" class="col-sm-2 control-label">Sesso</label>
					<div class="col-sm-6">
						<select name="RICER_SEX" class="form-control" id="sesso">
						    <option value="" class="hidden"></option>
							<option value="F">F</option>
							<option value="M">M</option>
						</select>
					</div>
				</div>
				<!-- /SESSO -->

				<!-- INDIRIZZO -->
				<div class="form-group">
					<label for="indirizzo" class="col-sm-2 control-label">Indirizzo</label>
					<div class="col-sm-6">
						<input type="text" name="RICER_INDIRIZZO" class="form-control"
							id="indirizzo" placeholder="Inserisci indirizzo">
					</div>
				</div>
				<!-- /INDIRIZZO -->

				<!-- EMAIL -->
				<div class="form-group">
					<label for="email" class="col-sm-2 control-label">E-Mail</label>
					<div class="col-sm-6">
						<input type="email" name="RICER_EMAIL" class="form-control"
							id="email" placeholder="Inserisci e-mail">
					</div>
				</div>
				<!-- /EMAIL -->

				<!-- RUOLO -->
				<div class="form-group">
					<label for="ruolo" class="col-sm-2 control-label">Ruolo</label>
					<div class="col-sm-6">
						<select name="RICER_RUOLO" class="form-control" id="ruolo">
						    <option value="" class="hidden"></option>
							<option value="ricercatore">Ricercatore</option>
							<option value="direttore_dip">Direttore di
								Dipartimento</option>
							<option value="membro_area_sci">Membro del
								Comitato d'Area Scientifica</option>
						</select>
					</div>
				</div>
				<!-- /RUOLO -->

				<!-- MATRICOLA -->
				<div class="form-group">
					<label for="matricola" class="col-sm-2 control-label">Matricola</label>
					<div class="col-sm-6">
						<input type="text" name="RICER_MATRIC" class="form-control"
							id="matricola" placeholder="Inserisci matricola">
					</div>
				</div>
				<!-- /MATRICOLA -->

				<!-- ANNO MESSA IN RUOLO -->
				<div class="form-group">
					<label for="anno-messa-ruolo" class="col-sm-2 control-label">Anno
						messa in ruolo</label>
					<div class="col-sm-6">
						<input type="number" min="1970" max="2014" name="RICER_ANNO_MES_RUOLO" class="form-control"
							id="anno-messa-ruolo" placeholder="Inserisci anno messa in ruolo">
					</div>
				</div>
				<!-- /ANNO MESSA IN RUOLO -->

				<!-- DIPARTIMENTO -->
				<div class="form-group">
					<label for="dipartimento" class="col-sm-2 control-label">Dipartimento</label>
					<div class="col-sm-6">
						<select name="RICER_DIPART" class="form-control" id="dipartimento">
							
						</select>
					</div>
				</div>
				<!-- /DIPARTIMENTO -->

				<!-- AREA SCIENTIFICA -->
				<div class="form-group">
					<label for="area-scientifica" class="col-sm-2 control-label">Area
						Scientifica</label>
					<div class="col-sm-6">
						<select name="RICER_AREA_SCI" class="form-control"
							id="area-scientifica">
							
						</select>
					</div>
				</div>
				<!-- /AREA SCIENTIFICA -->

			</div>
			
			<!-- /RICERCATORE FORM AGGIUNTIVI -->


			<!-- RESPONSABILE D'ATENEO FORM AGGIUNTIVI  -->
			<div id="container" class="form-responsabile hidden">
				
				<!-- NOME -->
				<div class="form-group">
					<label for="nome" class="col-sm-2 control-label">Nome</label>
					<div class="col-sm-6">
						<input type="text" name="RESP_AT_NOME" class="form-control" id="nome-resp"
							placeholder="Inserisci nome">
					</div>
				</div>
				<!-- /NOME -->
	
				<!-- COGNOME -->
				<div class="form-group">
					<label for="cognome" class="col-sm-2 control-label">Cognome</label>
					<div class="col-sm-6">
						<input type="text" name="RESP_AT_COGNOME" class="form-control"
							id="cognome-resp" placeholder="Inserisci cognome">
					</div>
				</div>
				<!-- /COGNOME -->

				<!-- EVENTO -->
				<div class="form-group">
					<label for="evento" class="col-sm-2 control-label">Evento</label>
					<div class="col-sm-6">
						<select name="RESP_AT_EVT" class="form-control" id="evento">
							
						</select>
					</div>
				</div>
				<!-- /EVENTO -->

			</div>
			<!-- /RESPONSABILE D'ATENEO FORM AGGIUNTIVI  -->


			<br /> <br /> <br />

			<div class="form-group" style="position: absolute; left: 30%;">
				<button type="reset"
					class="btn btn-default glyphicon glyphicon-remove" onClick = "removeClasses()">
					<span style="font-family: arial"> Annulla</span>
				</button>
				&nbsp; &nbsp;
				<button type="button" class="btn btn-default glyphicon glyphicon-ok" id ="crea" onClick ="execute()">
					<span style="font-family: arial"> Crea</span>
				</button>
			</div>

		</form>

	<%@include file="footer.jsp"%>
</body>
</html>